package com.lastproject.dto;

import java.util.Date;

/**
 *  @author marinaub
 */
public class CriteriaDTO {

	private String columnLabel;
	private String columnName;
	private String lessThan;
	private String moreThan;
	private String equals;
	private String like;
	private boolean selected;
	private Date newerThan;
	private Date olderThan;

	public CriteriaDTO(String columnLabel, String columnName) {
		super();
		this.columnLabel = columnLabel;
		this.columnName = columnName;
		this.lessThan = "";
		this.moreThan = "";
		this.equals = "";
		this.like = "";
		this.selected = false;
		this.newerThan = null;
		this.olderThan = null;
	}
	
	public boolean isSelected() {
		return selected;
	}
	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	public String getLessThan() {
		return lessThan;
	}
	public void setLessThan(String lessThan) {
		this.lessThan = lessThan;
	}
	public String getMoreThan() {
		return moreThan;
	}
	public void setMoreThan(String moreThan) {
		this.moreThan = moreThan;
	}
	public String getEquals() {
		return equals;
	}
	public void setEquals(String equals) {
		this.equals = equals;
	}
	public String getLike() {
		return like;
	}
	public void setLike(String like) {
		this.like = like.trim();
	}
	public Date getNewerThan() {
		return newerThan;
	}
	public void setNewerThan(Date newerThan) {
		this.newerThan = newerThan;
	}
	public Date getOlderThan() {
		return olderThan;
	}
	public void setOlderThan(Date olderThan) {
		this.olderThan = olderThan;
	}

	public String getColumnLabel() {
		return columnLabel;
	}

	public void setColumnLabel(String columnLabel) {
		this.columnLabel = columnLabel;
	}
}
